package com.uchedao.seller.ui.car.publish.vin.Entity;

import com.google.gson.annotations.SerializedName;
import com.uchedao.seller.ui.carlist.entity.IndexSelectItem;

/**
 * Created by ZhangZhanghua on 2015/8/25 0025.
 */
public class CarSeries extends IndexSelectItem {
    public static final String BRAND_ID = "brand_id";
    public static final String ID = "id";
    public static final String IMPORT_ID = "import_id";
    public static final String MAKER_ID = "maker_id";
    public static final String MAKER_NAME = "maker_name";
    public static final String NAME = "name";
    public static final String SEARCH_SERIES = "select a.*,b.name as maker_name from car_series a left join car_maker b on a.maker_id = b.id  where a.brand_id =? order by lower(a.maker_id);";
    public static final String SEARCH_SERIES_BY_BRANDE_ID = "select * from car_series where brand_id =? order by lower(full_spell);";
    public static final String SEARCH_SERIES_BY_ID = "select * from car_series  where id =? ;";
    public static final String SPELL = "full_spell";
    public static final String TABLE_NAME = "car_series";
    public static final int TPYE_IMPORT = 0x1;

    @SerializedName("brand_id")
    private int brandId;

    @SerializedName("id")
    private int id;

    private int makerId;
    private String makerName;

    @SerializedName("text")
    private String name;

    @SerializedName("full_spell")
    private String spell;

    public int getBrandId() {
        return brandId;
    }

    public void setBrandId(int brandId) {
        this.brandId = brandId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getMakerId() {
        return makerId;
    }

    public void setMakerId(int makerId) {
        this.makerId = makerId;
    }

    public String getMakerName() {
        return makerName;
    }

    public void setMakerName(String makerName) {
        this.makerName = makerName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSpell() {
        return spell;
    }

    public void setSpell(String spell) {
        this.spell = spell;
    }

    @Override
    public String getIndexSelectAlpha() {
        return String.valueOf(spell.toUpperCase().charAt(0));
    }

    @Override
    public String getIndexSelectName() {
        return name;
    }

}